From c4a21c70939bd30b96febbabb5d9e5f40914be12 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Konrad=20Gr=C3=A4fe?= Date: Thu, 23 May 2019 16:29:03 +0200 Subject: [PATCH] Fix crash on download from Navin/ZNEX miniHomer (#352) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This adds the options gps-utc-offset and gps-week-rollover to the miniHomer driver. By adding them solely to the skytraq driver they were initialized with nullptr for the miniHomer ultimately leading to a crash. Signed-off-by: Konrad Gräfe --- skytraq.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/skytraq.cc b/skytraq.cc index 7eb07c0b9..654d49d5c 100644 --- a/skytraq.cc +++ b/skytraq.cc @@ -1491,6 +1491,14 @@ static arglist_t miniHomer_args[] = { { "Boat", &opt_set_poi_boat, "POI for Boat Symbol as lat:lng[:alt]", nullptr, ARGTYPE_STRING, "", "", nullptr }, { "Heart", &opt_set_poi_heart, "POI for Heart Symbol as lat:lng[:alt]", nullptr, ARGTYPE_STRING, "", "", nullptr }, { "Bar", &opt_set_poi_bar, "POI for Bar Symbol as lat:lng[:alt]", nullptr, ARGTYPE_STRING, "", "", nullptr }, + { + "gps-utc-offset", &opt_gps_utc_offset, "Seconds that GPS time tracks UTC (0: best guess)", + "0", ARGTYPE_INT, ARG_NOMINMAX, nullptr + }, + { + "gps-week-rollover", &opt_gps_week_rollover, "GPS week rollover period we're in (-1: best guess)", + "-1", ARGTYPE_INT, ARG_NOMINMAX, nullptr + }, ARG_TERMINATOR }; /* -- 2.30.2